import Vue from 'vue'
import App from './App'
import store from '@/store';
import {login} from '@/common/login.js'
import device from '@/common/device.js'
import { parseTime } from '@/common/costum.js'
import uView from 'uview-ui';
// import httpInterceptor from '@/common/http.interceptor.js';


Vue.prototype.Device = device()
Vue.prototype.parseTime = parseTime
let vuexStore = require("@/store/$u.mixin.js");
// console.log(vuexStore)
Vue.mixin(vuexStore);

Vue.config.productionTip = false

Vue.prototype.$onLaunched = new Promise(resolve => {
    Vue.prototype.$isResolve = resolve
})

App.mpType = 'app'
Vue.use(uView);

const app = new Vue({
	store,
    ...App
}) 

// Vue.use(httpInterceptor, app);

app.$mount()


